/***************************************************
 @Name :        小铭同学
 @Time :        2025-09-03
 @Email :       LiaoMingWJ233@163.com
 @Comment :     按键1、2、3 设备状态获取
 @FileName :    keydevice.cpp
 @Version :     1.0
****************************************************/


#include "keydevice.h"

KeyDevice::KeyDevice(QObject *parent) : QObject(parent)
{
    key_init();
}

int KeyDevice::getKey1(){
    int ret = is_Key1_clicked();
    if(ret < 0)
    {
        qDebug()<<"get Key1 faile";
    }
    return ret;
}

int KeyDevice::getKey2(){
    int ret = is_Key2_clicked();
    if(ret < 0)
    {
        qDebug()<<"get Key2 faile";
    }
    return ret;
}


int KeyDevice::getKey3(){
    int ret = is_Key3_clicked();
    if(ret < 0)
    {
        qDebug()<<"get Key3 faile";
    }
    return ret;
}

